package com.example.onion.hxchat.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * @author:onion
 * 队伍相关通知
 * @data: 2020/7/8
 */
@Entity(tableName = "TeamNotification")
public class TeamNotification {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
    public int id;

    @ColumnInfo(name = "userId", typeAffinity = ColumnInfo.TEXT)
    public String userId;//发送该队伍通知（入队邀请/队伍删除通知）的用户id

    @ColumnInfo(name = "userName", typeAffinity = ColumnInfo.TEXT)
    public String userName;//发送该队伍通知（入队邀请/队伍删除通知）的用户昵称

    @ColumnInfo(name = "teamNotificationInfo", typeAffinity = ColumnInfo.TEXT)
    public String teamNotificationInfo; //队伍通知（入队邀请/队伍删除通知）的提示信息

    @ColumnInfo(name = "receivedUserId", typeAffinity = ColumnInfo.TEXT)
    public String receivedUserId; //接收到队伍通知的用户id


    @ColumnInfo(name = "teamNotificationType", typeAffinity = ColumnInfo.TEXT)
    public String teamNotificationType; //接收到队伍通知的类型


    public TeamNotification(int id, String userId, String userName, String teamNotificationInfo, String receivedUserId, String teamNotificationType) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.teamNotificationInfo = teamNotificationInfo;
        this.receivedUserId = receivedUserId;
        this.teamNotificationType = teamNotificationType;
    }

    @Ignore
    public TeamNotification(String userId, String teamNotificationInfo, String receivedUserId, String teamNotificationType) {
        this.userId = userId;
        this.teamNotificationInfo = teamNotificationInfo;
        this.receivedUserId = receivedUserId;
        this.teamNotificationType = teamNotificationType;
    }

    @Ignore
    public TeamNotification(String userId, String userName, String teamNotificationInfo, String receivedUserId, String teamNotificationType) {
        this.userId = userId;
        this.userName = userName;
        this.teamNotificationInfo = teamNotificationInfo;
        this.receivedUserId = receivedUserId;
        this.teamNotificationType = teamNotificationType;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setTeamNotificationType(String teamNotificationType) {
        this.teamNotificationType = teamNotificationType;
    }

    public String getTeamNotificationType() {
        return teamNotificationType;
    }

    public String getReceivedUserId() {
        return receivedUserId;
    }

    public void setReceivedUserId(String receivedUserId) {
        this.receivedUserId = receivedUserId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setTeamNotificationInfo(String teamNotificationInfo) {
        this.teamNotificationInfo = teamNotificationInfo;
    }

    public String getUserId() {
        return userId;
    }

    public String getTeamNotificationInfo() {
        return teamNotificationInfo;
    }
}
